package com.ipay.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ipay.entity.TradeRecord;

public interface TradeRecordDao extends BaseDao<TradeRecord> {

	List<TradeRecord> findTradeRecordList(Map<String, Object> map);
	List<TradeRecord> findTkTradeRecordList(Map<String, Object> map);

	List<TradeRecord> findTradeRecordPage(TradeRecord payorder);
	List<Map<String, Object>> findDateGrouping(TradeRecord payorder);
	List<Map<String, Object>> findOrderDateStatistics(TradeRecord payorder);
	List<Map<String, Object>> findDateGroupingSX(TradeRecord payorder);

	List<Map<String, Object>> findDateGroupingSKY(TradeRecord payorder);

	BigDecimal findTodaySumAmount(Map<String, Object> map);
	BigDecimal findTodaySumAmountByBusId(Map<String, Object> map);
	Integer findCountRecord(Map<String, Object> map);
	TradeRecord findTradeRecordDetails(String recordNo);

	TradeRecord queryByRecordNo(String recordNo);

	int updateRefundStart(TradeRecord payorder);

	BigDecimal findRefundSumAmount(Map<String, Object> map);
	
	List<TradeRecord> findSumAmountByDate(TradeRecord payorder);

}
